package com.jeecms.pay.model;

/**
 * 兑换订单
 * 
 * @author web
 * 
 */
public class ExchangeOrder extends AbstractOrder {

	/**
	 * 兑换目标游戏
	 */
	private int gameId;

	/**
	 * 游戏名称
	 */
	private String gameName;

	/**
	 * 兑换目标游戏服务区
	 */
	private String zoneId;

	/**
	 * 兑换游戏角色id
	 */
	private String gameRoleId;

	/**
	 * 兑换比率
	 */
	private float exchangeRate;

	/**
	 * 第三方游戏对应的元宝
	 * 
	 */
	private float gameMoney;

	/**
	 * 商户提交的返回url
	 */
	private String returnUrl;

	/**
	 * 兑换是否被商户允许
	 */
	private int exchangeAllowed = 2;

	public enum ExchangeAllowed {
		/**
		 * 商户允许交换
		 */
		allowed {
			@Override
			public int getIntValue() {
				return 1;
			}
		},
		/**
		 * 商户不允许交换
		 */
		not_allowed {
			@Override
			public int getIntValue() {
				return 2;
			}
		};

		public abstract int getIntValue();
	}

	public int getGameId() {
		return gameId;
	}

	public void setGameId(int gameId) {
		this.gameId = gameId;
	}

	public String getGameName() {
		return gameName;
	}

	public void setGameName(String gameName) {
		this.gameName = gameName;
	}

	public String getZoneId() {
		return zoneId;
	}

	public void setZoneId(String zoneId) {
		this.zoneId = zoneId;
	}

	public String getGameRoleId() {
		return gameRoleId;
	}

	public void setGameRoleId(String gameRoleId) {
		this.gameRoleId = gameRoleId;
	}

	public float getExchangeRate() {
		return exchangeRate;
	}

	public void setExchangeRate(float exchangeRate) {
		this.exchangeRate = exchangeRate;
	}

	public float getGameMoney() {
		return gameMoney;
	}

	public void setGameMoney(float gameMoney) {
		this.gameMoney = gameMoney;
	}

	public String getReturnUrl() {
		return returnUrl;
	}

	public void setReturnUrl(String returnUrl) {
		this.returnUrl = returnUrl;
	}

	public int getExchangeAllowed() {
		return exchangeAllowed;
	}

	public void setExchangeAllowed(int exchangeAllowed) {
		this.exchangeAllowed = exchangeAllowed;
	}

}
